Re: [Kea-users] Kea packages for FreeBSD, OpenBSD and Ubuntu

2016-06-09 Thread Francis Dupont
there is no net/kea in it (yet). Regards Francis Dupont <fdup...@isc.org> PS: I know some people in the cited *BSD teams if needed. ___ Kea-users mailing list Kea-users@lists.isc.org https://lists.isc.org/mailman/listinfo/kea-users

Re: [Kea-users] Kea packages for FreeBSD, OpenBSD and Ubuntu

2016-06-10 Thread Francis Dupont
Downloaded the ports (vs packages, cf my FreeBAS comments) for OpenBSD: it has a net/kea directory. Regards Francis Dupont <fdup...@isc.org> ___ Kea-users mailing list Kea-users@lists.isc.org https://lists.isc.org/mailman/listinfo/kea-users

Re: [Kea-users] [kea-dev] kea-dhcp6 ignoring DHCPv6 messages received on a tuntap interface

2016-04-21 Thread Francis Dupont
Did you try to add an address to the interface in the kea.conf? >From time to time it makes things magically working (at least for me). Regards Francis Dupont <fdup...@isc.org> PS: http://git.kea.isc.org/~tester/kea/guide/kea-guide.html#dhcp6-unicast PPS: your tcpdump shows a link loc

Re: [Kea-users] Compilation failure with OpenSSL 1.1

2016-07-31 Thread Francis Dupont
someone already asked please ignore: I am back from holidays) Regards Francis Dupont <fdup...@isc.org> ___ Kea-users mailing list Kea-users@lists.isc.org https://lists.isc.org/mailman/listinfo/kea-users

Re: [Kea-users] "filename" vs "option bootfile-name"

2016-07-10 Thread Francis Dupont
mp; paste the code after this comment... Or if the other specific processing is useful too puts all clients in the right class. Regards Francis Dupont <fdup...@isc.org> ___ Kea-users mailing list Kea-users@lists.isc.org https://lists.isc.org/mailman/listinfo/kea-users

Re: [Kea-users] Need help defining custom options

2017-01-31 Thread Francis Dupont
uot;data\": \"foo,bar\" in the case you read the patch content). BTW something I expect from the reviewer is a request for documentation so if you have an idea about to explain the escape feature in the Kea user guide... Regards Francis Dupont <fdup...@isc.org> PS: to

Re: [Kea-users] Need help defining custom options

2017-01-31 Thread Francis Dupont
Kea is still young so it has no to support a long history as bind or ISC DHCP. Or with other words all Kea releases are major releases... Regards Francis Dupont <fdup...@isc.org> ___ Kea-users mailing list Kea-users@lists.isc.org https://lists.i

Re: [Kea-users] Need help defining custom options

2017-01-31 Thread Francis Dupont
I chose the escape because you can get embedded commas inside a field, i.e., the string value is just a particular case (even it seems the most current). Thanks Francis Dupont <fdup...@isc.org> ___ Kea-users mailing list Kea-users@lists.isc.org

Re: [Kea-users] Option-82-based reservation

2017-01-31 Thread Francis Dupont
Look at the mac-sources stuff in the Kea user guide. Regards Francis Dupont <fdup...@isc.org> Rui Pedro Caldeira writes: > --===4576728167823046396== > Content-Language: en-US > Content-Type: multipart/alternative; &

Re: [Kea-users] Unable to use custom port for MySQL in lease/host-database

2017-01-23 Thread Francis Dupont
are not late so IMHO this feature should be supported pretty quickly. Thanks Francis Dupont <fdup...@isc.org> ___ Kea-users mailing list Kea-users@lists.isc.org https://lists.isc.org/mailman/listinfo/kea-users

Re: [Kea-users] Need help defining custom options

2017-01-30 Thread Francis Dupont
Currently in Kea you can't put a comma (character ',') in an option string value. It is a known problem (ticket #5105) but its solution was not yet reviewed... Note you can still use a binary value which has to this problem. Regards Francis Dupont <fdup...@isc.org> PS: If you'd like

Re: [Kea-users] Set domain-search option for dhcp4

2017-02-21 Thread Francis Dupont
ot compressed (compression is explicitly allowed in this option which BTW has for format an array of DNS names). The DNS names (aka FQDNs) in wired format are supposed to be supported by Kea but it seems only DHCPv6 standard options use it. So please open a

Re: [Kea-users] Kea leases import/insert

2017-01-18 Thread Francis Dupont
IMHO what you need is a tool to translate ISC DHCP lease database into a Kea one. This seems a good idea for the day we'll work on migration tools. Regards Francis Dupont <fdup...@isc.org> ___ Kea-users mailing list Kea-users@lists.isc.org

Re: [Kea-users] Invalid DHCP Server Identifier: 0.0.0.0

2016-08-30 Thread Francis Dupont
server-id 0.0.0.0 is considered as invalid by only some clients but not all... Anyway there are at least 2 tickets (#3280 and #4063) asking for a configurable server-id... Regards Francis Dupont <fdup...@isc.org> ___ Kea-users mailing list Kea

Re: [Kea-users] Cannot assign IPv6 addresses

2016-09-10 Thread Francis Dupont
=> I believe you checked with tcpdump or wireshark the solicit was received by the server system (BTW a capture could be useful). Did your disabled the IPv6 firewall? (the question is a bit silly but this point is easy to forget, myself I was caught from time to time). Regards Francis Dup

Re: [Kea-users] kea-hooks question

2016-09-15 Thread Francis Dupont
delayed ACKs). Another point is Kea is currently not multi-threaded (again DHCPv4 over DHCPv6 is an exception because it uses 2 processes, one managing the DHCPv6 part, the other the DHCPv4 part). Regards Francis Dupont <fdup...@isc.org> PS: about your example you have a trade-off between rel

Re: [Kea-users] Cannot assign IPv6 addresses

2016-09-10 Thread Francis Dupont
If nobody answers before Monday I'll look at Jenkins configs but I believe the corresponding make commands are explicitly called. I apologize but my phone is ringing... Regards Francis Dupont <fdup...@isc.org> ___ Kea-users mailing list Kea

Re: [Kea-users] option 54 in subnet definition

2016-12-16 Thread Francis Dupont
We know the address given is server-identifier should get more control, there are some tickets about this (and as far as I know no time to deal with them soon...). Regards Francis Dupont <fdup...@isc.org> Igor Smitran writes: > Hi list, > > Did any of you tried to set custom se

Re: [Kea-users] KEA 1.1.0 vs. isc-dhcp-server 4.3.3

2017-01-09 Thread Francis Dupont
>>* Francis Dupont <fdup...@isc.org>: >> In ISC DHCP the check of the server ID (DHCPv4 option 54) is optional >> (server-id-check dhcpd.conf option, default no check). > Can it be made optional in KEA as well? => ISC DHCP manual has an extensive discu

Re: [Kea-users] KEA 1.1.0 vs. isc-dhcp-server 4.3.3

2017-01-06 Thread Francis Dupont
In ISC DHCP the check of the server ID (DHCPv4 option 54) is optional (server-id-check dhcpd.conf option, default no check). Regards Francis Dupont <fdup...@isc.org> ___ Kea-users mailing list Kea-users@lists.isc.org https://lists.isc.org/m

Re: [Kea-users] Kea as a foreground process

2016-12-18 Thread Francis Dupont
SC DHCP have command line options to not daemonize. Kea servers have none but don't daemonize (i.e., they stay in foreground without closing standard in, out and error, nor create a new login session. So I don't understand what is your problem? (i.e., IMHO there is nothing to solve). Regards Francis

Re: [Kea-users] problem in custom option

2017-03-30 Thread Francis Dupont
Known and fixed defect: 1213. [bug] fdupont Option string values containing comma can now be specified correctly by preceding comma with double backslashes (e.g. "foo\\,bar"). (Trac #5105, git fa79ac2396aa94d7bac91bd12d3593ebaaa9386d) Regard

Re: [Kea-users] DHCPv6 allocations (IA_NA and IA_PD) based on interface-id (relay Option 18) [update: solution provided]

2017-04-03 Thread Francis Dupont
Joelson Vendramin writes: > Please let me know when you have this "flex-id" implemented! => it was a hour ago. Thanks Francis Dupont <fdup...@isc.org> PS: it is a premium feature (Tomek shall explain what this is meant). ___

Re: [Kea-users] Execute script

2017-04-15 Thread Francis Dupont
ks are doing the same thing: they print the query using Kea C++ toText method (kea-pkt4.str in python). They are just to show it is feasible and to find all problems, not to do real things (even they are a good start for a hook library with the same power than C++). Regards Francis Dupont <

Re: [Kea-users] IP lease based only on host reservation database

2017-04-17 Thread Francis Dupont
Stas Starikevich writes: > Can someone suggest a way to serve only white-listed (with host reservation) > clients? > I.e. if client is not in the 'hosts' table then it shouldn't not get any leas > es (and boot from the HDD, but not from PXE). => did you try with no pool? Regards

Re: [Kea-users] IP lease based only on host reservation database

2017-04-19 Thread Francis Dupont
r as I know the only required parameter in a subnet is the "subnet" range. Pools are not required and without a pool there is no available address so only known hosts which have a reservation can get an address. This is a theory, i.e. you have to try it, but on the paper it does exactly what you

Re: [Kea-users] [kea-dev] Raw socket input buffer

2017-07-31 Thread Francis Dupont
l a lot of dhcp-packets :p) > > Any tip, trick, configuration or whatever on that issue ? => slow processing is incompatible with the DHCP protocol so basically there is no final fix, only tricks to make things less broken. Regards Francis Dupont <fdup...@isc.org> ___

Re: [Kea-users] [kea-dev] Raw socket input buffer

2017-07-31 Thread Francis Dupont
long hook startup you should initiate it when the hook is loaded (unfortunately today a hook is loaded more than once?) Regards Francis Dupont <fdup...@isc.org> ___ Kea-users mailing list Kea-users@lists.isc.org https://lists.isc.org/mailman/listinfo/kea-users

Re: [Kea-users] Changing DSCP field in IPv4

2017-07-17 Thread Francis Dupont
? => which system? The code sets the field to IPTOS_LOWDELAY for BPF & co, and does not touch it for UDP (DHCPv6 default, DHCPv4 when dhcp socket type is configured). This does not seem crazy and for sure should not raise any problem... Regards Francis Dupont <fdup...@isc.org> PS: IS

Re: [Kea-users] Assigning IP to TOR Switch

2017-07-11 Thread Francis Dupont
er detail which it is (too) easy to get wrong. I recommend to use wireshark or tcpdump to inspect packets on the wire, in particular the PRL in the discover and options in the offer. Regards Francis Dupont <fdup...@isc.org> PS: option 150 got multiple definitions in the past so is *not* a

Re: [Kea-users] fe80::

2017-07-12 Thread Francis Dupont
I don't think Kea does something special with fe80:: but kernels should as it is the any router anycast address, so illegal as a source address... Regards Francis Dupont <fdup...@isc.org> ___ Kea-users mailing list Kea-users@lists.isc.org

Re: [Kea-users] using sql expression in client classification

2017-07-18 Thread Francis Dupont
idea). Thanks Francis Dupont <fdup...@isc.org> ___ Kea-users mailing list Kea-users@lists.isc.org https://lists.isc.org/mailman/listinfo/kea-users

Re: [Kea-users] Changing the order of DHCP Options in DHCP Offer Packet

2017-07-20 Thread Francis Dupont
somewhere (you are not the first asking this). Regards Francis Dupont <fdup...@isc.org> ___ Kea-users mailing list Kea-users@lists.isc.org https://lists.isc.org/mailman/listinfo/kea-users

Re: [Kea-users] Build requirements doc

2017-07-02 Thread Francis Dupont
I meant that each time I had a choice between clang and gcc these last years clang was better. Regards Francis Dupont <fdup...@isc.org> ___ Kea-users mailing list Kea-users@lists.isc.org https://lists.isc.org/mailman/listinfo/kea-users

Re: [Kea-users] DHCP options order incompatibility

2017-07-05 Thread Francis Dupont
ything after is ignored... So there is *nothing* else in RFCs about option order and as far as I know it is at implementor choice (which is different for ISC DHCP and Kea BTW). Thanks Francis Dupont <fdup...@isc.org> PS: you can use a hook to pack options in your

Re: [Kea-users] Specifying common boot-file-name

2017-07-06 Thread Francis Dupont
If you use the option the easiest is to define a global option-data. BTW there is a ticket to allow bootp parameters in more contexts. Regards Francis Dupont <fdup...@isc.org> PS: option-data can be global, per subnet, per reservation, per class and since yesterday per pool. Note client

Re: [Kea-users] Force DHCP option in response

2017-07-06 Thread Francis Dupont
to write a hook which patches the PRL (option 55 dhcp-parameter-request-list) as this feature is implemented in ISC DHCP (it will be more user friendly in future Kea). Thanks Francis Dupont <fdup...@isc.org> PS: from RFC 2132: 9.8. Parameter Request List This option is u

Re: [Kea-users] Hook library .so file location after install

2017-06-27 Thread Francis Dupont
the Makefile or to install the library manually (first option is more complex but it should make things right). Regards Francis Dupont <fdup...@isc.org> ___ Kea-users mailing list Kea-users@lists.isc.org https://lists.isc.org/mailman/listinfo/kea-users

Re: [Kea-users] Force DHCP option in response

2017-07-07 Thread Francis Dupont
hat some critical values are not 0, for instance the result of the dynamic cast. This should make your code more robust. Regards Francis Dupont <fdup...@isc.org> ___ Kea-users mailing list Kea-users@lists.isc.org https://lists.isc.org/mailman/listinfo/kea-users

Re: [Kea-users] Option 121, multiple routes

2017-08-06 Thread Francis Dupont
n is fine but as you found it can handle only one route with a subnet which encodes into 3 bytes... Unfortunately there is only one correct definition: say the layout is binary (BTW it is the default for unknown options) and encode the value manually... Regards Francis Dupont <fdup...@isc.or

Re: [Kea-users] free text parameter under each subnet

2017-08-19 Thread Francis Dupont
User contexts are strictly more powerful as they are part of objects so can be retrieve by hooks. They just need to be more general, i.e. current user-context support is still a (successful) experimentation. Regards Francis Dupont <fdup...@isc.

Re: [Kea-users] free text parameter under each subnet

2017-08-18 Thread Francis Dupont
James Sumners writes: > Unfortunately the parser doesn't ignore unknown properties. => not unfortunately: it is by design and I am sure you'd like the parser to catch a trivial spelling error than to silently ignore it. Regards Francis Dupont <fdup...@isc.org> PS: as you expect

Re: [Kea-users] [Kea 1.2] configuration - cannot end the last element of a list with a comma

2017-05-09 Thread Francis Dupont
close a partial list or map using an include) so do not touch the syntax. Thanks Francis Dupont <fdup...@isc.org> PS: the main inconvenient from the strict no trailing comma rule is when you put some part into a comment, in particular when generating the config... _

Re: [Kea-users] Hook - python

2017-06-20 Thread Francis Dupont
I did an experiment writing hooks in other languages than C++ and Python was in the list. I committed this branch fdxhook to github, things (including the doc you should read) are under src/hooks/external (based in an old version of Kea as this is nearly one year old). Regards Francis Dupont

Re: [Kea-users] Hook - python

2017-06-20 Thread Francis Dupont
V8 API is unstable so it is hard to maintain a code written in v8. At least I am sure the v8 API version I used last year is today enough different than some part of the code need to be rewritten. Regards Francis Dupont <fdup...@isc.org> PS: and a programming language is not popular b

Re: [Kea-users] Client-class - hook

2017-06-22 Thread Francis Dupont
pkt->addClass("my-client-class"); should work well. BTW the client class include in dhcp/classify.h Regards Francis Dupont <fdup...@isc.org> ___ Kea-users mailing list Kea-users@lists.isc.org https://lists.isc.org/mailman/listinfo/kea-users

Re: [Kea-users] failed to select subnet for the client

2017-05-29 Thread Francis Dupont
I suggest to add "interface": "ens192", into the "subnet": "172.0.1.0/24" specification if the failing client is directly attached to this subnetwork. Regards Francis Dupont <fdup...@isc.org> Yury Tsaregorodtsev writes: > > > --===

Re: [Kea-users] Help - Making HTTPS Call from Kea Hook Library

2017-06-15 Thread Francis Dupont
- if libssl.so is not listed by ldd then add a hack at the end of src/lib/cryptolink/openssl_link.cc with a reference to a libssl.so symbol. Choose one (e.g., SSL_library_init), add its include () and a call to it as in lexer.ll. Note the function will be never really called but it will be r

Re: [Kea-users] Templates or Reference (kea 1.2.0)

2017-09-14 Thread Francis Dupont
Does it not enough to define it globally? Regards Francis Dupont <fdup...@isc.org> ___ Kea-users mailing list Kea-users@lists.isc.org https://lists.isc.org/mailman/listinfo/kea-users

Re: [Kea-users] static routes

2017-10-04 Thread Francis Dupont
array of IPv4 addresses. BTW the Kea definition does not catch the fact addresses come by destination+gateway pairs but this should not be a problem... Regards Francis Dupont <fdup...@isc.org> PS: this is no easy when to express this kind of constraints and BTW it i

Re: [Kea-users] one interface, multiple subnets

2017-10-16 Thread Francis Dupont
t;10.1.2.0/24", "option-data": { { ... } ], "pools": [ ], "reservations": [ { "hw-address": "1a:1b:1c:1d:1e:1f", "ip-address": "10.1.2.1" }, ... Look at the devel version of the user/admin's guide section 8.4.3. Regards Francis Dupont <fdup...@isc.org> ___ Kea-users mailing list Kea-users@lists.isc.org https://lists.isc.org/mailman/listinfo/kea-users

Re: [Kea-users] kea-dhcp-ddns question

2017-09-07 Thread Francis Dupont
h information. But maybe there is > some trick I can use right now? => in both cases I am afraid you need a hook. BTW there was a hook calling scripts announced in this list some days ago so perhaps you do not have to write a line of C++ (*) code. Regards Francis Dupont <fd

Re: [Kea-users] pefdhcp help

2017-09-08 Thread Francis Dupont
't listen on 2001:db8:beef:55::2 by default. > The issue is very strange that is why I need your help. The strange thing > is that perfdhcp worked perfectly for ipv4. => DHCPv4 uses (by default, you can change the service socket type) a BPF/LPF/etc socket, DHCPv6 uses standard UDP.

Re: [Kea-users] kea source ip

2017-09-11 Thread Francis Dupont
itay cohen writes: > its kinda working, > after changing the address i'm getting this error and kea stops sending > responses. > > DHCP4_PACKET_SEND_FAIL [hwtype=1 00:0c:29:45:76:07], > cid=[01:00:0c:29:45:76:07], tid=0xdbed5a23: failed to send DHCPv4 packet: > pkt4 send failed: sendmsg()

Re: [Kea-users] kea source ip

2017-09-11 Thread Francis Dupont
> does some now know how to change the source ip of dhcp messages with a hook > ? => setRemoteAddr(newaddr) on the received packet should do this... Regards Francis Dupont <fdup...@isc.org> ___ Kea-users mailing list Kea-users@list

Re: [Kea-users] kea 1.2 - "One or more hook libraries failed to load"

2017-09-06 Thread Francis Dupont
Try to get the HOOKS_OPEN_ERROR which returns errors from dlopen(). Note the main reason to get dlopen to not find DSOs is to forget to set LD_LIBRARY_PATH... Regards Francis Dupont <fdup...@isc.org> ___ Kea-users mailing list Kea-users@lists.i

Re: [Kea-users] Kea Option 125

2017-09-06 Thread Francis Dupont
) you have a work-around by using a binary value: "csv-format": false, "data": "0123456789abcdef". Regards Francis Dupont <fdup...@isc.org> PS: I can translate your ISC DHCP config into Kea but it won't change the fact that multiple enterprises are not suppo

Re: [Kea-users] Dynamic options generation.

2017-09-06 Thread Francis Dupont
Francis Dupont writes: I should have added my answer applies only to static (i.e. in config file) definitions / setting data values. > Marcin Jurczuk writes: > > I'm evaluating isc-dhcp replacement with kea and I've stumbled upon some co > nf > > iguration options tha

Re: [Kea-users] pefdhcp help

2017-09-07 Thread Francis Dupont
configuration in DHCPv4 server guide). Regards Francis Dupont <fdup...@isc.org> ___ Kea-users mailing list Kea-users@lists.isc.org https://lists.isc.org/mailman/listinfo/kea-users

Re: [Kea-users] Configuring kea for relayed subnets *not* on its own interface's address

2017-09-13 Thread Francis Dupont
A client-class in a subnet may be used only to refuse a subnet selection. In your case your config requires a positive selector, for instance a relay address (relayed messages) or an interface (direct connected clients). Regards Francis Dupont <fdup...@isc.org> PS: there is a third possi

Re: [Kea-users] Configuring kea for relayed subnets *not* on its own interface's address

2017-09-13 Thread Francis Dupont
config the tool can't infer the interface list... Regards Francis Dupont <fdup...@isc.org> PS: in Jeff's case it is better to select subnets using relay addresses than using the receiving interface because a priori relays serve different physical subnets so should no

Re: [Kea-users] Configuring kea for relayed subnets *not* on its own interface's address

2017-09-13 Thread Francis Dupont
Jason Lixfeld writes: > There a translation tool to migrate ISC DHCP configs to Kea? => we are working on one but I don't know how it will be made available (e.g. assisted web-based service?). Regards Francis Dupont <fdup...@isc.org> _

Re: [Kea-users] Dynamic options generation.

2017-09-06 Thread Francis Dupont
he option is standard for ISC DHCP (defined in common/tables.c) we have 2 tickets which implement it in Kea (if it is not yet supported). Regards Francis Dupont <fdup...@isc.org> ___ Kea-users mailing list Kea-users@lists.isc.org https://lists.

Re: [Kea-users] kea 1.2 - "One or more hook libraries failed to load"

2017-09-06 Thread Francis Dupont
Jason Lixfeld writes: > However, running -t said syntax was OK. => -t does not check everything, for instance hook parameters. Regards Francis Dupont <fdup...@isc.org> BTW the manual page says that "hook libraries are not loaded" so don't expect to have a not loaded

Re: [Kea-users] DHCPv6 Relay listens on multicast and link-local only

2017-10-02 Thread Francis Dupont
I gave the ticket #4539 "kea-dhcp6 must join All_DHCP_Servers too" another chance... Regards Francis Dupont <fdup...@isc.org> PS: I put it on the kea-proposed milestone so it will be put in Kea 1.3 final (i.e., addressed before 1.3 release), Kea 1.4 or back in Out

Re: [Kea-users] kea answers to relay using giaddr instead of source address. any way to fix?

2017-09-28 Thread Francis Dupont
IMHO the simplest is to write a little hook which resets the giaddr, or to understand why the client or relay sets it and fix this. Regards Francis Dupont <fdup...@isc.org> ___ Kea-users mailing list Kea-users@lists.isc.org https://lists.i

Re: [Kea-users] kea answers to relay using giaddr instead of source address. any way to fix?

2017-09-28 Thread Francis Dupont
A client class is the easiest way to perform specific subnet selection. Regards Francis Dupont <fdup...@isc.org> ___ Kea-users mailing list Kea-users@lists.isc.org https://lists.isc.org/mailman/listinfo/kea-users

Re: [Kea-users] kea answers to relay using giaddr instead of source address. any way to fix?

2017-09-28 Thread Francis Dupont
"test": "relay4[2].text == '100.101.101.0'" => please try "test": "relay4[2].hex == 100.101.101.0" (.text does not return what you want if the (sub-)option is not a string and IP address litterals are supported).

Re: [Kea-users] timers defined on gloval scope are not exported with the get-config command

2017-10-03 Thread Francis Dupont
timer values are configured and a default value copied from the global scope is not configured? Regards Francis Dupont <fdup...@isc.org> PS: if the action of deriveParams (src/lib/cc/simple_parser.h) is misleading we have somewhere the code of a factorParams doing the opposite. It was

Re: [Kea-users] Option 43 - Vendor-encapsulated-options

2017-08-25 Thread Francis Dupont
easy to fix. BTW if you can send to us all details to help in the solution definition? Thanks Francis Dupont <fdup...@isc.org> PS: the only round-around is to define in src/lib/dhcp/std_option_defs.h the option 43 to binary without encapsulated space

Re: [Kea-users] Client Classification options and subnet options

2017-08-31 Thread Francis Dupont
;option[55].hex == 0x0103072B". > This loads correctly on service start but I don't think I've gotten it to > successfully match to a client yet. => you can debug the classification evaluation. Regards Francis Dupont <fdup...@isc.org> ___ Kea-users mailing list Kea-users@lists.isc.org https://lists.isc.org/mailman/listinfo/kea-users

Re: [Kea-users] Shared subnets configuration - input needed

2017-09-01 Thread Francis Dupont
"Chaigneau, Nicolas" writes: > I assume the file is looked for in the same directory as the including file? > ? > > Can you also specify absolute file paths ? ( ?>) > And relative paths ? () => it does fopen(filename.c_str(), "r") so the answer is yes t

Re: [Kea-users] Client Classification options and subnet options

2017-08-31 Thread Francis Dupont
=> yes, valid-lifetime, renew-timer and rebind-timer are supported parameters in DHCPv4 subnets. Regards Francis Dupont <fdup...@isc.org> ___ Kea-users mailing list Kea-users@lists.isc.org https://lists.isc.org/mailman/listinfo/kea-users

Re: [Kea-users] lease4_select - hook

2017-10-18 Thread Francis Dupont
t manager. Thanks Francis Dupont <fdup...@isc.org> ___ Kea-users mailing list Kea-users@lists.isc.org https://lists.isc.org/mailman/listinfo/kea-users

Re: [Kea-users] Kea vivso-suboption

2017-10-20 Thread Francis Dupont
t;vendor-encapsulated-options", > "csv-format": false > } > ] > => vendor-encapsulated-options space is (in fact now was in 1.3) the space for the option 43. Option 125 is managed with the vendor-4491 space. Look at

Re: [Kea-users] limiting how many leases someone can get

2017-11-15 Thread Francis Dupont
you can add with a hook). Regards Francis Dupont <fdup...@isc.org> PS: I create a new ticket #5433 and added a reference to it in the migration assistant (which of course translate it into a comment so it does not help you). ___ Kea-users mailing list

Re: [Kea-users] Equivalent to ISC dhcpd "not authoritative"?

2017-11-24 Thread Francis Dupont
the subnet4_select point, and drop the NAK at pkt4_send. If there is enough interest we can develop a premium hook code. Regards Francis Dupont <fdup...@isc.org> ___ Kea-users mailing list Kea-users@lists.isc.org https://lists.isc.org/mailman/listinfo/kea-users

Re: [Kea-users] Does anybody use Debian stretch as OS?

2017-11-22 Thread Francis Dupont
Can you fill an entry in "Install Kea from sources" in the wiki (http://kea.isc.org/wiki/Install)? Thanks Francis Dupont <fdup...@isc.org> PS: we should keep these more up to date (:-)... ___ Kea-users mailing list Kea-users@lis

Re: [Kea-users] bind kea to non-local IP

2017-12-14 Thread Francis Dupont
t come time to renew its IP address, it contacts its > last DHCP server and if that server doesn't respond, it gives up. => it is a clear (but common) violation of the protocol both at the letter and in the spirit. Perhaps it is the reason DHCPv6 requires the use of multicast?

Re: [Kea-users] log the dhcp options the client requests

2017-12-18 Thread Francis Dupont
ourse you can log the request details (but not only PRL / ORO) or write a hook doing this (it is possible the log statement will be implemented as a hook). Note you can post a feature request (or wrote the hook code and make a pull request for it on github). Regards Francis Dupont <fdup...@isc

Re: [Kea-users] bind kea to non-local IP

2017-12-14 Thread Francis Dupont
Francis Dupont <fdup...@isc.org> ___ Kea-users mailing list Kea-users@lists.isc.org https://lists.isc.org/mailman/listinfo/kea-users

Re: [Kea-users] bind kea to non-local IP

2017-12-14 Thread Francis Dupont
Kea is like 99.99% of network servers I know: it binds only to local addresses as required by the standard socket API. Regards Francis Dupont <fdup...@isc.org> PS: I am sure you'll get the same problem with bind9 for instance. ___ Kea-users m

Re: [Kea-users] lease time

2017-11-15 Thread Francis Dupont
ned :-) it is possible but IMHO it is simpler to ask a new feature making timers settable per client classes. Regards Francis Dupont <fdup...@isc.org> PS: I have a good idea you'd like to do this but it will be even better if you can describe a real worl

Re: [Kea-users] ignore the broadcast flag in a discover and response with unicast

2017-11-13 Thread Francis Dupont
It requires to write code but it does not strictly require C++ code even it this case it will be simpler than to master interfaces between C++ and "external" languages as Python, OCaml, Lua or V8 cf. the fdxhook branch available on github where I describe such experiment. Regards Fran

Re: [Kea-users] Kea LFC not executed anymore after some time (Kea 1.2.0) + other timers

2017-12-04 Thread Francis Dupont
I have to verify in the code but it seems to be the result of a lost signal... BTW there is a known race in signal handling with at least a ticket (#4068), if we are lucky it could be enough to address it. Regards Francis Dupont <fdup...@isc.org> PS: strace (Linux), ktrace (BSD),

Re: [Kea-users] Subdividing a subnet based on class

2017-10-20 Thread Francis Dupont
the subnet into two subnets with their own pools and a match for one of the classes. Note the user/admin guide has a section about this with the same kind of problem to solve. Thanks Francis Dupont <fdup...@isc.org> PS: there is not yet a magic way to combine client classes even I think a

Re: [Kea-users] DDNS update for win10 clients

2017-10-21 Thread Francis Dupont
understand what is different so perhaps wrong. Thanks Francis Dupont <fdup...@isc.org> ___ Kea-users mailing list Kea-users@lists.isc.org https://lists.isc.org/mailman/listinfo/kea-users

Re: [Kea-users] DDNS update for win10 clients

2017-10-22 Thread Francis Dupont
Thomas Markwalder writes: > However this will override the flags for all clients. => note there is a ticket about making dhcp-ddns setting local from a similar feature in ISC DHCP (e.g. in a client class matching MSFT vendor class). Regards Francis Dupont <fdup...@isc.org> PS:

Re: [Kea-users] Host reservation with remote-id

2018-05-16 Thread Francis Dupont
Mathias Aichinger writes: > How can I realize this with KEA? => you'll get more detailed answer but at the first look you need flex-id. > Does it work with the Premium API? => yes. Regards Francis Dupont <fdup...@isc.org> ___ Kea-

Re: [Kea-users] next-server-address in hooks for UEFI config servers

2018-05-25 Thread Francis Dupont
server option to packet. > opt = response->getOption(DHO_HOME_AGENT_ADDRS); => This option gives a list (vs one) of addresses of the Mobile IP home agent. So it is something different (but if it makes the client happy...). Regards Francis Dupont <fdup...@isc.org> __

Re: [Kea-users] user-context

2018-06-14 Thread Francis Dupont
itay cohen writes: > i'm trying to get user-context from a selected subnet on lease4_select api > with a hook, => what are you trying to do? lease4_select is a REST API, hooks are linked DSO using a programming language (typically C++ but it is not required). Regards Franc

Re: [Kea-users] kea 1.3.0 dying with mysql error

2018-06-18 Thread Francis Dupont
won't solve the problem but just try in the case I am wrong) - Kea 1.4 reconnects databases so the error should be transient (vs fatal) in the new 1.4 release. Regards Francis Dupont ___ Kea-users mailing list Kea-users@lists.isc.org https://lists.isc

Re: [Kea-users] Best practice recommendation for reserving/blocking out VIPs?

2018-06-15 Thread Francis Dupont
text in the doc). Note you do not need to use an existing MAC in a host reservation, the only constraint is to use a different MAC (or identifier in general) between host reservations. Regards Francis Dupont ___ Kea-users mailing list Kea-users

Re: [Kea-users] Newbie questions

2018-06-15 Thread Francis Dupont
You need either a PRL option (code 55) to list requested options in the discover or request, or to set always-send to true in option data entries of a recent enough Kea config. Regards Francis Dupont PS: always-send adds the option code to the PRL option which is BTW the way to do the same

Re: [Kea-users] Client Classification question

2018-06-03 Thread Francis Dupont
ion[].hex ... Regards Francis Dupont ___ Kea-users mailing list Kea-users@lists.isc.org https://lists.isc.org/mailman/listinfo/kea-users

Re: [Kea-users] map class with pool

2018-06-03 Thread Francis Dupont
u double check you are running Kea 1.4-beta? This feature was added after 1.3 release. Regards Francis Dupont ___ Kea-users mailing list Kea-users@lists.isc.org https://lists.isc.org/mailman/listinfo/kea-users

Re: [Kea-users] Releasing or deleting a lease

2018-06-01 Thread Francis Dupont
lease_cmds hook (in Kea core code)? Regards Francis Dupont ___ Kea-users mailing list Kea-users@lists.isc.org https://lists.isc.org/mailman/listinfo/kea-users

Re: [Kea-users] kea http uefi boot

2018-06-05 Thread Francis Dupont
I looked at for possible candidates fro client-architecture options. One is the option 93 (client-system in Kea which BTW does not allow to redefine options). The value 16 is not in RFC 4578 table but it is 11 year old... Regards Francis Dupont

Re: [Kea-users] next-server-address in hooks for UEFI config servers

2018-05-30 Thread Francis Dupont
Gokulakrishnan Gopalakrishnan writes: > Currently, I'm hardcoding 'next-server' in kea.conf. Is it possible to do > it via hook code? => yes of course. BTW the way to set the next server address field (aka siaddr) in BOOTP/DHCP packet is the Pkt4 setSiaddr() method. Regards Franc

Re: [Kea-users] Issue building Kea 1.4.0-beta - configure: error: Needs log4cplus library

2018-05-30 Thread Francis Dupont
"g++ --std=c++11" in the shell before calling autoreconf and ./configure. Regards Francis Dupont ___ Kea-users mailing list Kea-users@lists.isc.org https://lists.isc.org/mailman/listinfo/kea-users

  1   2   3   >